#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>

#include "sensor_log.h"
#include "sensor_support.h"
#include "sensor_wrapper.h"
#include "hal_adapter.h"


extern float sensor_motion_on_accel_threshold_get(void);
extern float sensor_wakeup_motion_accel_threshold_get(void);


void sensor_delay(uint32_t ms)
{
    HAL_Delay(ms);
}


void *sensor_malloc(uint32_t size)
{
    return malloc(size);
}


void sensor_free(void *mem)
{
    if(mem)
        free(mem);
}


/* 运动阈值 */
float sensor_motion_accel_threshold_get(void)
{
    return sensor_motion_on_accel_threshold_get();
}

/* 中断唤醒阈值 */
float sensor_wakeup_accel_threshold_get(void)
{
    return sensor_wakeup_motion_accel_threshold_get();
}




